﻿

using Microsoft.EntityFrameworkCore.Metadata.Internal;

namespace LeaderCCSLaserUI.Models
{
    public class XYZPointDisp : DispBase
    {
		private double x;

		public double X
		{
			get { return x; }
			set
			{
				if (x != value)
				{
					x = value;
					OnPropertyChanged();
				}
			}
		}
		private double y;

		public double Y
		{
			get { return y; }
			set
			{
				if (y != value)
				{
					y = value;
					OnPropertyChanged();
				}
			}
		}
		private double z;

		public double Z
		{
			get { return z; }
			set
			{
				if (z != value)
				{
					z = value;
					OnPropertyChanged();
				}
			}
		}
		private double h;

		public double H
        {
			get { return h; }
			set
			{
				if (h != value)
				{
					h = value;
					OnPropertyChanged();
				}
			}
		}

		private double x1;

		public double X1
		{
			get { return x1; }
			set
			{
				if (x1 != value)
				{
					x1 = value;
					OnPropertyChanged();
				}
			}
		}
		private double y1;

		public double Y1
		{
			get { return y1; }
			set
			{
				if (y1 != value)
				{
					y1 = value;
					OnPropertyChanged();
				}
			}
		}
		private bool isUse;

		public bool IsUse
        {
			get { return isUse; }
			set
			{
				if (isUse != value)
				{
					isUse = value;
					OnPropertyChanged();
				}
			}
		}

		public string Alias { get; set; }
		public string Name { get; set; }
		public int Id { get; set; }
        private int lazerDocumentIndex;

        public int LazerDocumentIndex
        {
            get { return lazerDocumentIndex; }
            set
            {
                if (lazerDocumentIndex != value)
                {
					if (value > 0 && value < 6)
					{
                        lazerDocumentIndex = value;
                        OnPropertyChanged();
                    }
                }
            }
        }
        private int productIndex;
        public int ProductIndex
        {
            get { return productIndex; }
            set
            {
                if (productIndex != value)
                {
                    if (value > 0 && value < 5)
                    {
                        productIndex = value;
                        OnPropertyChanged();
                    }
                }
            }
        }
        public int PcsOrder { get; set; }
    }
}
